package com.example.supplychainbackend.mapper;

import com.example.supplychainbackend.controller.dto.TodoDto;
import com.example.supplychainbackend.controller.dto.design.BOMDto;
import com.example.supplychainbackend.controller.dto.design.ECNDto;
import com.example.supplychainbackend.entity.TodoEntity;
import com.example.supplychainbackend.entity.design.BOMEntity;
import com.example.supplychainbackend.entity.design.ECNEntity;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring",
        builder = @Builder(disableBuilder = true))
public interface TodoMapper {

    TodoDto toDto(TodoEntity entity);

    TodoEntity toEntity(TodoDto dto);

    List<TodoDto> toDtoList(List<TodoEntity> entity);



}
